package com.cloud.common.tenant;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author Aijm
 * @Description  多租户 控制
 * @Date 2019/5/8
 */
@Data
@Component
@ConfigurationProperties (prefix = "cloud.tenant")
public class CloudTenantConfigProperties {

    /**
     * 维护租户列名称
     */
    private String tenantIdColumn="tenant_id";

    /**
     * 多租户的数据表集合
     */
    private List<String> tables = new ArrayList<>();
}
